/**
 * com.cnhis.cloudhealth.emr.bo.Vef1Bo.java
 */
package com.cnhis.cloudhealth.clinical.medical.base.bo;


import com.cnhis.cloudhealth.clinical.medical.base.dao.MedicalVef1Dao;
import com.cnhis.cloudhealth.clinical.medical.base.mapper.MedicalVef1;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;
import java.util.Map;

/**
 * @author 程少威
 * @version 0.1
 * @file Vef1Bo.java
 * @todo Vef1业务操作接口 Copyright(C), 2013-2014
 * Shenzhen Coordinates Software Development Co., Ltd.
 * History
 * 1. Date: 2017-07-10 04:19:57
 * Author: 程少威
 * Modification: this file was created
 * 2. ...
 */
@Service
public class MedicalVef1Bo {
    @Resource
    private MedicalVef1Dao medicalVef1Dao;


    public void setMedicalVef1Dao(MedicalVef1Dao medicalVef1Dao) {
        this.medicalVef1Dao = medicalVef1Dao;
    }

    /**
     * 配置文件中编号：(4)
     * 向数据库中插入一条记录
     *
     * @param vo 与数据库中记录对应的值对象
     * @return type : RpDir 返回插入操作是否成功
     * @throws Exception
     */
    public MedicalVef1 save(MedicalVef1 vo) throws Exception {
        if (vo == null) return null;
        return medicalVef1Dao.insertByVo(vo);
    }

    /**
     * chengshaowei 2017/7/11 9:28
     *
     * @return com.cnhis.cloudhealth.commons.Mappers.ModelVo
     * @throws
     * @Title: findCostExecutionRecord
     * @Description: （根据费用id查询费用执行记录）
     */
    public List<Map<String, Object>> findCostExecutionRecord(Map<String, Object> map) throws Exception {
        return medicalVef1Dao.findCostExecutionRecord(map);
    }
}
